package com.ddone.faker;

import net.datafaker.Faker;
import net.datafaker.providers.base.BaseProviders;
import net.datafaker.providers.base.Internet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.Locale;

/**
 * @author ddone
 * @date 2024/3/26-11:29
 */

@Component
public class ChinaInternet extends Internet {

    protected ChinaInternet(BaseProviders faker) {
        super(faker);
    }

    @Override
    public String emailAddress() {
        Faker faker = new Faker(Locale.ENGLISH);
        return faker.name().username();
    }
}

